from curl_cffi import requests
from util.headers import get_header


url = "https://h5api.m.1688.com/h5/mtop.relationrecommend.wirelessrecommend.recommend/2.0/?jsv=2.7.4&appKey=12574478&t=1762860708888&sign=8e84a1ad79799702cb6dd3ccf304d462&api=mtop.relationrecommend.WirelessRecommend.recommend&ignoreLogin=true&prefix=h5api&v=2.0&dataType=jsonp&jsonpIncPrefix=fetchTpp_32517_getOfferList&timeout=20000&type=jsonp&callback=mtopjsonpfetchTpp_32517_getOfferList3&data=%7B%22appId%22%3A32517%2C%22params%22%3A%22%7B%5C%22verticalProductFlag%5C%22%3A%5C%22pcmarket%5C%22%2C%5C%22searchScene%5C%22%3A%5C%22pcOfferSearch%5C%22%2C%5C%22charset%5C%22%3A%5C%22utf8%5C%22%2C%5C%22beginPage%5C%22%3A1%2C%5C%22pageSize%5C%22%3A60%2C%5C%22keywords%5C%22%3A%5C%22%25E7%2594%25B7%25E8%25A3%2585%5C%22%2C%5C%22spm%5C%22%3A%5C%22a260k.home2025.category.dL2.66333597JThJZV%5C%22%2C%5C%22method%5C%22%3A%5C%22getOfferList%5C%22%7D%22%7D"

res = requests.get(
    url,
    headers=get_header("https://s.1688.com/"),
    cookies={
        "_m_h5_tk": "6593a7f893d04d6bd61043576a9bb63a_1762868188701",
        "_m_h5_tk_enc": "90c92377177190bad0d3beef79f2c9df",
    },
)
print(res.text)
